using UnityEngine;
using System.Collections;
using Boomlagoon.JSON;

public class StaticDataParser {
	public static void parseStaticData (JSONObject staticDataJsonObj , StaticDataContainer staticData)
	{
		staticData.StaticId = staticDataJsonObj.GetString("staticId");

		JSONArray groupIdsJsonArray = staticDataJsonObj.GetArray("groupIds");
		for (int i = 0 ; i < groupIdsJsonArray.Length ; i++)
		{
			string groupId = groupIdsJsonArray[i].Str;
			staticData.AddGroupId(groupId);
		}
	}
}
